FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build

FROM mcr.microsoft.com/dotnet/aspnet:7.0
EXPOSE 44311
WORKDIR /app
COPY . .
ENV ConnectionStrings_Secret empty
ENV WorkFlowHost empty

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

ENTRYPOINT ["dotnet", "WorkflowCoreDockingDemo.Web.Host.dll"]
